<div class="extends-container js-bottom">
  <?php
    $permalink = permalink(array('text' => $detail->post_title, 'id' => $detail->id));
    $shareLink = urlencode($permalink);
  ?>
  <hr>
  <div class="container">
    <div class="row-fluid stickem-container">
      <div class="span2">
        <div class="author_info col_left" style="width: 145px">
          <div class="stickem">
            <div style="line-height: 50px; padding-left: 0px; margin-bottom: 20px;">
              <span>
                  <a href="javascript:void(0)" onclick="$(&#39;#login-form&#39;).modal(&#39;toggle&#39;); return false;" id="like-guide like" data-guide="1268" class="btn btn-like">Like This Ideal</a>
              </span><br>
              <span class="like_info js-box action-box action-likes" style="padding: 7px 15px; border: 1px solid #ddd; background: #ffffff; margin-left: 25px;" data-target="guide_likes" data-pixels="320">
                <i class="icon-dlove"></i> <span id="like-count">8</span>
              </span>
              <span class="fb-like" data-href="http://taymay.vn/guide/cach-xam-hinh-tam-thoi-ca-tinh-cho-teen/?object_type=guide&amp;object_id=1268" data-send="false" data-layout="button_count" data-width="150" data-show-faces="false"></span>                                
            </div>
          </div>
        </div>
      </div>
      <div class="span7" style="margin-left: 10px; margin-right: 10px;">
        <div class="col_center" id="center" style="width: 540px; position: relative;">      
          <div>
            <div id="js-step-0" class="step well js-step intro shadow" style="position: relative; width: 540px; height:auto; margin-right: 15px; margin-bottom: 30px;" data-ordinality="0" data-type="guide" data-itemid="1268">
              <div style="height: auto; overflow: hidden; border-radius: 3px 3px 0px 0px;">
                
                <img style="margin-top: 0px" class="intro-image" src="<?php echo 'http://toptattoos.net/uploads/' .$detail->post_image //getImage($detail->post_image) ?>" alt="" width="540">
              </div>
              <div style="position: relative; height: auto; overflow: hidden; min-height: 120px; background: #282828 url(&#39;../img/taymay/bg5.png&#39;) repeat top left; color: #fff">
                <div style="padding: 10px 5px 10px 29px; display: block; float: left; width: 500px;">
                  <div style="font-size: 22px; line-height: 27px;"><?php echo strip_tags($detail->post_title); ?></div>                                      
                  <div style="padding: 15px 5px 10px 0px; width: 250px;">
                    <span style="padding-right: 20px;"><i style="margin-right: 5px;" class="icon-dview"></i> 4727</span>  <span><a style="color: #fff; text-decoration: underline;" href="http://taymay.vn/guide/cach-xam-hinh-tam-thoi-ca-tinh-cho-teen#guide_comments"><i style="margin-right: 5px;" class="icon-dcomment"></i>1</a></span>
                  </div>
                </div>              
              </div>
            </div>           
          </div>
        </div>
      </div>
      <div class="span3">
        <div class="col_right">
          <div class="stickem">
            <div class="boxes well" style="background-color: #ffffff">
                <div class="tmtitle" style="margin-top: 0px; font-size: 19px"><i class="icon-dsupply" style="float: left; margin-right: 6px;"></i> Categories</div>
                  <div class="boxes-content">
                    <div id="guide_supplies" class="supply_wrap supplies-list">                                               
                      <div class="supply" itemprop="ingredient" itemscope="" itemtype="http://data-vocabulary.org/RecipeIngredient" style="height: auto; line-height: 24px; padding: 8px 0px;">
                          <span itemprop="amount"></span>
                          <span itemprop="name">Bút dạ mực đen</span>
                      </div>                  
                    </div>
                </div>
            </div>
            
                    <div class="boxes">
                    <div class="tmtitle">Like Us On Facebook</div>
                    <div class="boxes-content">
                      <div class="fb-like" data-href="http://www.facebook.com/taymayvn" data-send="false" data-width="240" data-show-faces="true"></div>
                    </div>
                  </div> 

              <?php if(!empty($olderPost)): ?>
              <div class="boxes">
                <div class="tmtitle">Other Ideal Tattoos</div>
                <div class="boxes-content">
                  <div class="guide-list-three">       
                  <?php foreach($olderPost as $post): ?>                 
                    <div class="guide-box ">
                      <a href="<?php echo permalink(array('text' => $post->post_title, 'id' => $post->id)); ?>"><img class="step-photo" src="<?php echo 'http://toptattoos.net/uploads/'.$post->post_image;//echo getImage($post->post_image) ?>"></a>
                      <span class="guide-content">
                          <a href="<?php echo permalink(array('text' => $post->post_title, 'id' => $post->id)); ?>"><?php echo substr(strip_tags($post->post_title),0,60) ?></a>
                      </span>                      
                    </div> 
                  <?php endforeach; ?>
                   </div>
                </div>
              </div>
              <?php endif;//older post ?> 
          </div>
        </div>
      </div>
    </div>
  </div>
</div>


<script type="text/javascript">
  $(document).ready(function() {
    $('.container').stickem();
  });
</script>            
            